/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-10-28
 * Time: 19:52
 */
public class Test {
    public static void main(String[] args) {
        Test2 solution = new Test2();
        char[][] ch = new char[][]{{1,1,0,0,0}, {0,1,0,1,1}, {0,0,0,1,1}, {0,0,0,0,0}, {0,0,1,1,1}};
        System.out.println(solution.solve(ch));
    }
}
